x86: Define atomic_{read,write}{8,16,32,64} accessor functions.
authorKeir Fraser <keir@xen.org>
Thu, 16 Dec 2010 19:29:08 +0000 (19:29 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 16 Dec 2010 19:29:08 +0000 (19:29 +0000)
commitd24d88e65518211116d166787feff5f6c5711738
tree967319b9f73244f2b0130a00f9d2daae77861538
parent49f09d64e40b5e3c689592abd3e457dd4a7cff5d
x86: Define atomic_{read,write}{8,16,32,64} accessor functions.

These absolutely guarantee to read/write a uint*_t with a single atomic
processor instruction.

Also re-define atomic_read/atomic_write (act on atomic_t) similarly.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/atomic.h
xen/include/asm-x86/x86_32/system.h
xen/include/asm-x86/x86_64/system.h